package <%=props.packageName%>.<%-props.entityPackage%>;

import java.util.List;
<%
var className = under2Pascl(tb.fields[0].TABLE_NAME)
var idxs	= props.idxs;
tb.package.forEach(pack=>{
%>
import <%-pack%>;
<%});%>
public class <%=className%> <%
	var intefs = props.entiry.implements;
	if(intefs && Array.isArray(intefs) && intefs.length>0){
		%>implements <%=intefs.join(",")%><%
	}
%>{
	private static final long serialVersionUID = 1L;
	<%-include(extrucPath(path.join(dirname,"fields.ejs")),{tb:tb,className:className})%>
	
	<%-include(extrucPath(path.join(dirname,"entity_functions.ejs")),{tb:tb,className:className})%>

	<%//如果需要toString
	if(props.toString){%>
	<%-include(extrucPath(path.join(dirname,"toString.ejs")),{tb:tb,className:className})%>
	<%}%>
	
}

